import React, { Component } from 'react'
import '@/components/dialog.scss'
export default class Dialog extends Component {
  render() {
    return (
      <div className='dialog'>
        <div className='dialog-title'>
            <div className='title'>{this.props.title}</div>
            <div className='close' onClick={()=>{
                this.props.closeCallback()
            }}>&times;</div>
        </div>
        <div className='dialog-body'>
            {this.props.children}
        </div>
      </div>
    )
  }
}
